package com.liuyi.netty.im.lychat.modular.controller.model;

import com.liuyi.netty.im.lychat.modular.entity.User;
import com.liuyi.netty.im.lychat.modular.entity.UserFriend;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Mr.Fmy
 * @since 2021/12/31
 */
public class UserFriendModel {

    @Data
    @ApiModel("UserFriendModel-GroupFriendResult")
    public static class GroupFriendResult implements Serializable {

        @ApiModelProperty(value = "是否是群组成员")
        private boolean groupMemberIs;

        @ApiModelProperty(value = "好友信息")
        private UserFriend userFriend;
    }

    @Data
    @ApiModel("UserFriendModel-Result")
    public static class Result implements Serializable {

        @ApiModelProperty(value = "是否是好友")
        private boolean friend;

        @ApiModelProperty(value = "用户信息")
        private User user;

        @ApiModelProperty(value = "好友信息，是好友时存在")
        private UserFriend userFriend;
    }
}
